<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><META content="IE=11.0000" http-equiv="X-UA-Compatible">
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <TITLE></TITLE> <LINK href="css/style.css" rel="stylesheet" type="text/css">
    <script src="js/jquery-1.8.3.min.js"></script>
    <script>
        $(function () {

            $(".input-button").click(function () {
                if($("#username").val()==""){
                    alert("姓名不能为空");
                }else{
                    if($("#pwd").val()==""){
                        alert("密码不能为空");
                    }else{
              $.ajax({
                  type:"post",
                  url:"selectAll",
                  data:{name1:$("#username").val(),
                        pwd1:$("#pwd").val()},
                  dataType:"text",
                  success:function (ress){
                     if(ress=="s"){
                         alert('失败');
                     }else{
                         alert('成功');
                        location.href="list";
                     }
                  }
              })
                }
                }
            })
        })
    </script>



    <META name="GENERATOR" content="MSHTML 11.00.10586.420"></HEAD>
<BODY>

<DIV class="wrap" id="header"><IMG src="imags/logo.gif"> </DIV>
<DIV class="wrap" id="login">
    <DIV class="main">
        <DIV class="corner"></DIV>
        <DIV class="introduce">
            <H2>北大青鸟</H2>
            <P>网上调查系统...</P></DIV>
        <DIV class="login">
            <H2>用户登录</H2>
            <FORM action="User-login.action" method="post">
                <DL id="loginBox">
                    <DT>用户名：</DT>
                    <DD><INPUT  id="username" name="userVo.userName" class="input-text" type="text"></DD>
                    <DT>密　码：</DT>
                    <DD><INPUT  id="pwd"  name="userVo.password" class="input-text" type="password"></DD>
                    <DT></DT>
                    <DD><INPUT name="submit" class="input-button" type="button" value="登录"> <A
                            href="zc">新用户注册</A></DD></DL></FORM>
            <DIV class="error"></DIV></DIV></DIV></DIV>
<DIV class="wrap"></DIV>
<DIV class="wrap" id="footer">	北大青鸟 © 版权所有 </DIV></BODY></HTML>
